var mongoose = require("mongoose");

mongoose
  .connect("mongodb://lth:0217lth@101.201.178.39:27017/lth?authSource=lth")
  .then(() => {
    console.log("Connected to MongoDB");
  })
  .catch(err => {
    console.log("Failed to connect to MongoDB", err);
  });

module.exports = mongoose;
